package tjut.TestDriver;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import tjut.Control.UseInfoControl;

public class test_1 {
    private ApplicationContext context=null;
	@Before
	public void doInit(){
		context=new ClassPathXmlApplicationContext("application_config.xml");
	}
	@Test
	public void selectAll(){
		//获取spring bean
		UseInfoControl useC=(UseInfoControl) context.getBean("usControl");
		//调用方法
		useC.selectAllUseInforr();
	}
	
	@Test
	public void insertUse(){
		
	}
}
